import request from './request'

const getUrl = (url, params) => {
    return request.get(url, { params })
}

const postUrl = (url, params) => {
    return request.post(url, params)
}

const deleteUrl = (url, params) => {
    return request.delete(url, { params })
}

const newDeleteUrl = (url, params) => {
    return request.delete(url, {
        data: params
    })
}

const putUrl = (url, params) => {
    return request.put(url, params)
}

const patchUrl = (url, params)=>{
    return request.patch(url,  params)
}


export {
    getUrl,
    postUrl,
    deleteUrl,
    putUrl,
    newDeleteUrl,
    patchUrl
}